﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ActiveVector
{
    private List<ActivePrivateVector> list;

    public ActiveVector() {
        list = new List<ActivePrivateVector>();
    }

    public ActivePrivateVector getVar(string name)
    {
        foreach (ActivePrivateVector i in list)
        {
            if (i.activeName.Equals(name))
                return i;
        }
        ActivePrivateVector apv = new ActivePrivateVector(name);
        list.Add(apv);
        return apv;
    }

    public void clear()
    {
        list = new List<ActivePrivateVector>();
    }

}